WORD FileRead(DWORD handle, char *buf, WORD size);
ÆÄÀÏ¿¡¼ ÁöÁ¤ÇÑ size¸¸ÅÀ» ÀÐ¾î¼ buf¿¡ ´ã´Â ÇÔ¼öÀÌ´Ù.
ÇÔ¼öÀÎÀÚ
handle - FileOpen ÇÔ¼ö¸¦ »ç¿ëÇÏ¿© ¾òÀº ÆÄÀÏ ÀÎ½Ä ID
buf - ÆÄÀÏ¿¡¼ Àоî¿Í¼ ´ãÀ» ¸Þ¸ð¸®
size - ÆÄÀÏ¿¡¼ Àоî¿Ã Å©±â
return °ª
ÀбⰡ ¼º°øÀûÀ¸·Î ³¡³ª¸é return°ªÀº ÀÐÀº Å©±â ¸¸ÅÀÌ µ¹¾Æ¿Â´Ù.
¿¹Á¦1
handle = @FileOpen("C:\\EX.TXT", "r");
if(handle != 0) {
@FileRead(handle, buf, 14);
@FileClose(handle);
}
¹®Àå¼³¸í : C:\\EX.TXT ÆÄÀÏÀ» ¿¾î¼ buf¿¡ 14°³ÀÇ µ¥ÀÌÅ͸¦ Àоî¿Â µÚ ÆÄÀÏÀ» ´Ý´Â´Ù.